﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataTier.Repository.Interface;
using DataTier.Repository.Implementation;
using BusinessTier.Facade.Interface;

namespace BusinessTier.Facade.Implementation
{
    public class MembershipService : IMembershipService
    {
        private IMembershipRepository membershipRepository;
        public MembershipService()
            : this(new MembershipRepository())
        {
        }

        public MembershipService(IMembershipRepository membershipRepository)
        {
            this.membershipRepository = membershipRepository;
        }


        #region IMembershipService Members

        public Guid GetAnonymousUserId(string userName)
        {
            return membershipRepository.GetAnonymousUserId(userName);
        }

        #endregion
    }
}
